package edu.cmu.cs.stage3.alice.authoringtool.editors.responseeditor;

import edu.cmu.cs.stage3.alice.authoringtool.AuthoringTool;
import edu.cmu.cs.stage3.alice.authoringtool.AuthoringToolResources;

public class ParallelResponsePanel extends CompositeResponsePanel {

	public ParallelResponsePanel(){
		super();
		headerText = AuthoringToolResources.getReprForValue(edu.cmu.cs.stage3.alice.core.response.DoTogether.class);
	}

	public void set(edu.cmu.cs.stage3.alice.core.response.DoTogether r, AuthoringTool authoringToolIn){
		super.set(r, authoringToolIn);
	}

	/*
    public ParallelResponsePanel(edu.cmu.cs.stage3.alice.core.response.DoTogether r, int depth, AuthoringTool authoringToolIn){
        super(r, depth, authoringToolIn);
    }
	 */
	//Rem @Override
	protected void updateGUI(){
		super.updateGUI();
	}

	//Rem @Override
	protected java.awt.Color getCustomBackgroundColor(){
		return AuthoringToolResources.getColor("DoTogether");
	}

	protected static java.awt.image.BufferedImage parallelBackgroundImage;
	protected static java.awt.Dimension parallelBackgroundImageSize = new java.awt.Dimension( -1, -1 );

	protected void createBackgroundImage( int width, int height ) {
		parallelBackgroundImageSize.setSize( width, height );
		parallelBackgroundImage = new java.awt.image.BufferedImage( width, height, java.awt.image.BufferedImage.TYPE_INT_ARGB );
		java.awt.Graphics2D g = (java.awt.Graphics2D)parallelBackgroundImage.getGraphics();
		g.addRenderingHints( new java.awt.RenderingHints( java.awt.RenderingHints.KEY_ANTIALIASING, java.awt.RenderingHints.VALUE_ANTIALIAS_ON ) );
		g.setColor( backgroundColor );
		g.fillRect( 0, 0, width, height );
	}

}